hvm_op: Clean up new mem_access and inject_trap ops.
authorKeir Fraser <keir@xen.org>
Sun, 6 Feb 2011 17:21:17 +0000 (17:21 +0000)
committerKeir Fraser <keir@xen.org>
Sun, 6 Feb 2011 17:21:17 +0000 (17:21 +0000)
commite6d97230f53e6c08e03334bbe5b83b2823381a7b
treee74800574248dd0c7da38768d8ab45ac28818bd9
parent95eddf1e8725a52b319a6d53ced93c30315fe1ff
hvm_op: Clean up new mem_access and inject_trap ops.

Firstly, they are only for use from privileged entities, so mark them
as usable only by code defining __XEN_TOOLS__.

Secondly, the check for must-not-operate-on-myself can be done more
cleanly.

Signed-off-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hvm/hvm.c
xen/include/public/hvm/hvm_op.h